<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class ExtendVersionStorageTypeCosInVersionTable extends AbstractMigration
{
    public function up()
    {
        $this->table('version')
            ->changeColumn("storage_type", "enum", [
                'values' => 'bd_pan,cos',
                'default' => null,
                'null' => true,
                'comment' => '存储类型',
            ])->save();
    }

    public function down()
    {
        $this->table('version')
            ->changeColumn("storage_type", "enum", [
                'values' => 'bd_pan',
                'default' => null,
                'null' => true,
                'comment' => '存储类型',
            ])->save();
    }
}
